#!/bin/bash

INST_DIR=`dirname $0`

# Add jssecacerts to JAVA

. ${INST_DIR}/default.properties
cd ${INST_DIR}/conf/
wget http://blogs.sun.com/andreas/resource/InstallCert.java
javac InstallCert.java
java InstallCert ${smtp_hostname}:${smtp_port}
TODO Eliminate required user interaction
ln -s `pwd`/jssecacerts ${JAVA_HOME}/lib/security/